gtkentry: Fix potential use of uninitialised variables
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 2 Dec 2013 11:03:07 +0000 (11:03 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

gtk/gtkentry.c

index 03fb6d7d748e103b7718b5d67014677fee5e768b..3a2f203031a76aea444fec1689fac3d8f28067e1 100644 (file)
@@ -10616,7 +10616,7 @@ gtk_entry_set_progress_fraction (GtkEntry *entry,
   GtkEntryPrivate *private;
   gdouble          old_fraction;
   gint x, y, width, height;
-  gint old_x, old_y, old_width, old_height;
+  gint old_x = 0, old_y = 0, old_width = 0, old_height = 0;
   gboolean was_pulse;
 
   g_return_if_fail (GTK_IS_ENTRY (entry));